Add a babl_set_destructor
authorØyvind Kolås <pippin@gimp.org>
Sat, 26 Jun 2010 02:54:53 +0000 (03:54 +0100)
committerØyvind Kolås <pippin@gimp.org>
Sat, 26 Jun 2010 03:05:12 +0000 (04:05 +0100)
commitc435986318527b8dba3265d963b0e45fedb0d18b
tree54b54bcd1891c4db112f4771e697ea303060deb6
parent831267a944f292314c9cc2aa1b315ce7c9c8319b
Add a babl_set_destructor

Keep a callback function for each allocation instance, that allows an
allocation specific callback to be called when the memory segment is
freed. This makes a valgrind warning go away, most of the time no extra
memory should be needed since this is likely to fit within the padding.
babl/babl-format.c
babl/babl-image.c
babl/babl-memory.c
babl/babl-memory.h